

<% var pageLevelJS = { %>
<%include("/WEB-INF/views/btl/template/include/select2.html"){}%>
<script type="text/javascript">
var settings = {
		 modelDomainFlag:"sys"
		 ,modelName:"字典"
		 ,modelFlag:"dictitem"
		 ,key:"${sessionId}" 
		}
</script> 
<script type="text/javascript" src="${ctx}/static/js/sys/dictitem/edit.js"></script>
<%};%> 
<% var layoutParas =
{"title":"","add":isEmpty(data.id),"formId":"applyeditForm","pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicEditFormTemplate.html", layoutParas){ %>
	  <input type="hidden" name="id" value="${data.id}">
      
	  <div class="form-group col-md-5">
	     <label for="name" class="required-before col-sm-3 control-label no-padding-right" >类别:</label>
	     <div class="col-sm-9 inline-height">
	          <select placeholder="类别" name="dictId" oldval="${data.dictId}" class="validate[required] col-xs-10">
					<% for(res in dicts!){ %>
					  <option value="${res.id}"
					   <%if(data.dictId==res.id){%>
						  selected="selected"
						 <%}%>
					  >${res.name}</option>
				　　   <% } %>
				</select>
		  </div>
	  </div>
      <div class="form-group  col-md-5">
	       <label for="name" class="required-before col-sm-3 control-label no-padding-right">名称:</label>
	       <div class="col-sm-9 inline-height ">
				  <input type="text" oldval="${data.name}" value="${data.name}" class="validate[required,maxSize[50]] col-xs-10" name="name" placeholder="名称" />
	 	    </div> 
	   </div>
	 <div class="form-group col-md-5">
		<label class="required-before col-sm-3 control-label no-padding-right" for="code">值:</label>
		<div class="col-sm-9 inline-height">
			<input type="text" oldval="${data.code}" value="${data.code}" name="code" placeholder="值" class="validate[required,maxSize[50]] col-xs-10" />
		  </div>
	  </div>
	  <div class="form-group col-md-5">
	     <label for="remark" class="col-sm-3 control-label no-padding-right">备注:</label>
	     <div class="col-sm-9 inline-height">
		    <input type="text"  oldval="${data.remark}" value="${data.remark}" class="validate[maxSize[50]] col-xs-10" name="remark" placeholder="备注">
		  </div>
	  </div>	 
<%} %>